<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'tongji.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="CSS/common.css" rel="stylesheet" type="text/css" />
	<link href="CSS/date.css" rel="stylesheet" type="text/css" />

	<script src="JS/jquery-1.7.2.min.js" language="javascript" type="text/javascript"></script>
	<script src="JS/date.js" language="javascript" type="text/javascript"></script>
	<script src="JS/rili.js" language="javascript" type="text/javascript"></script>
	<script language="javascript">

	$(document).ready(function(){
		$("#starttime").cgCalendar();
		$("#endtime").cgCalendar();
		$("#caigoufs").click(function(){
			if($(this).attr("checked")=='checked'){
				$(this).parent().append("&nbsp;<select name=\"caigoufsName\"><option value=\"0\">所有</option><option value=\"1\">统一采购</option></select>");
			}else{
				$(this).next().remove();
			}
		});
		$("#last_lc").click(function(){
			if($(this).attr("checked")=='checked'){
				$(this).parent().append("&nbsp;<select name=\"last_lcName\"><option value=\"0\">所有</option><option value=\"3\">完成</option><option value=\"1\">未完成</option></select>");
			}else{
				$(this).next().remove();
			}
		});
		$("#jingfeidm").click(function(){
			if($(this).attr("checked")=='checked'){
				$(this).parent().append("&nbsp;<select name=\"jinfeidmName\" onchange=\"javascript:addinfo(this)\"}\"><option value=\"0\">所有</option><option value=\"0031008-02\">0031008-02</option></select>");
			}else{
				$(this).next().remove();
			}
		});
		$("#sq_shijian").click(function(){
			if($(this).attr("checked")=='checked'){
				$("#starttime").removeAttr("disabled");
				$("#endtime").removeAttr("disabled");
			}else{
				$("#starttime").attr("disabled","disabled");
				$("#endtime").attr("disabled","disabled");
			}
		});
		
	});
	
	function checkform()
	{
	 var num = 0;
		$("input[name='title']").each(function(){
			if($(this).attr("checked")== 'checked'){
				num++;
			}
		});
		if(num == 0){
			alert("必须选择标题");
			return false;
		}
		return true;
	}
	
	function addinfo(obj)
	{

		if(obj.value == '0031008-02')
		{
			$("#jingfeidm").parent().append("&nbsp;<select name=\"shenqingsj\"><option value=\"预算零单\" >预算零单</option><option value=\"预算专单\" >预算专单</option><option value=\"预算外\" >预算外</option></select>");
		}
		else
		{

			if($("#jingfeidm").parent().find("select").length>1)
			{
				$("#jingfeidm").parent().find("select").last().remove();
			}
		}
			
	}
</script>
  </head>
  
<body>

<div class="banner">
<h1>t欢迎计量学院网上审批系统上线</h1>
</div>

<div class="con sp_png">

<div class="sp_main" style="">
<script type="text/javascript" src="JS/tips.js"></script>
<div class="sideBar">
<h3>审批管理</h3>
<h4>欢迎您：<span>${Person.xingming}</span></h4>
		<dl>
		<dt>申请管理</dt>
		<dd><a href="TheFirst.jsp">在线申请</a></dd>
		<dd><a href="myShenqingServlet">我的申请</a></dd>
		<dd><a href="BusinessProcessServlet">业务处理</a></dd>
		<dd><a href="tongji.jsp">台账生成</a></dd>
		</dl>
		<dl>
		<dt>用户管理</dt>
		<dd><a href="YongHuliebiaoServlet">用户列表</a></dd>
		<dd><a href="tianjia.jsp">添加用户</a></dd>
		<dd><a href="xiugaimima.jsp">修改密码</a></dd>
		</dl>
		<dl>
<dt>注销</dt>
<dd><a>退出登录</a></dd>
</dl>
<p><input id="opentips" class="input_c" type="button" value="事件提醒"/></p>
<p align="left" style="font-family:Verdana, Arial, Helvetica, sans-serif; color:#0000FF">
<br>
<br>
<span style="font-size:14px; font-weight:bold">友情提示：</span>
<br>
使用本系统中如遇到问题，请与系统管理员联系。
<br>
系统管理员：王琳
<br>
联系电话：87676382
</p>
</div>

 	<div class="sp_con">
			<h3>台账生成</h3>
			<div class="topBar">
			<form method="post" name="tongji" action="TaiZhangExport" OnSubmit="return checkform()">
			台账类别：<select id="xmid" name="xmid">
				<option value="1" >气瓶增置（充装）</option>
				<option value="2" >校重点监管危化品</option>
				<option value="3" >非校重点监管危化品</option>
				<option value="4" selected="selected">货物/服务申购</option>
						</select>
			申请人：<input id="name" name="xingming" type="text" class="tjInput" id="name" value="" style="width:70px;"/>
			开始时间：<input type="text" id="starttime" name="starttime"  value="" class="tjInput" style="width:75px;" disabled="disabled"/>
			截止时间：<input type="text" id="endtime" name="endtime"   value="" class="tjInput" style="width:75px;" disabled="disabled"/><br>
			<span>Excel标题选择：</span><br>
			<span><input type="checkbox" name="title" value="think_shenqing.bh"  /> 业务编号</span>
			<span><input type="checkbox" name="title" value="lianxiren"  /> 联系人</span>
			<span><input type="checkbox" name="title" value="lianxidh"  /> 联系人手机</span>
			<span><input type="checkbox" name="title" value="dw_mc"  /> 使用部门</span>
			<span><input type="checkbox" name="title" value="jingfeimc"  /> 经费名称</span>
			<span><input type="checkbox" name="title" value="jingfeidm"  id="jingfeidm"/> 经费代码</span>
			<br>
			<span><input type="checkbox" name="title" value="caigoufs"  id="caigoufs"/> 采购方式</span>
			<span><input type="checkbox" name="title" value="hejije"  /> 合计金额(元)</span>
			<span><input type="checkbox" name="title" value="sq_shijian"  id="sq_shijian"/> 申请时间</span>
			<span><input type="checkbox" name="title" value="sh_riqi"  /> 计财处审批时间</span>
			<span><input type="checkbox" name="title" value="last_lc" id="last_lc" />业务状态</span>

			&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" id="submit1" value="导&nbsp;出"  />
			</form>
			
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>

<div class="footer png" style="position:relative;height:50px;">
<p>Copyright © 2012 版权所有：中国计量学院实验室与资产管理处 访问总量：<span>20243</span>次 <a>管理登录</a></p>
</div>

<script type="text/javascript">
	
</script>
</body>
</html>
